//
//  DetailHouseTypeVc.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/5/20.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//


#import "MyOrderViewPageVc.h"
#import "DetailHouseTypeVc.h"
#import "DetailHousePageVc.h"
#import "HouseTypeViewController.h"
#import "DetailMainTableViewController.h"


@interface DetailHouseTypeVc ()<DetailHousePageVcDelegate>
@property (weak, nonatomic) IBOutlet UILabel *lab1;
@property (weak, nonatomic) IBOutlet UILabel *lab2;

@end

@implementation DetailHouseTypeVc

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.titleView setMianTitle:@"楼盘房型"];
    self.titleView.doneBtn.hidden = YES;
    CGRect buf =[UIScreen mainScreen].applicationFrame;
    UIView *contentView = [[UIView alloc]initWithFrame:CGRectMake(0,50, buf.size.width,buf.size.height)];
    [self.view addSubview:contentView];
    
    
    DetailHousePageVc *vc = [[DetailHousePageVc alloc]init];
    
    vc.lab1 = self.lab1;
    vc.lab2 = self.lab2;
    vc.premisesId = self.premisesId;
    vc.delegate2 = self;
    [contentView addSubview:vc.view];
    [self addChildViewController:vc];
   }


-(void)DetailHousePageVcClickBtn:(NSInteger)houseId
{
    HouseTypeViewController *vc = [[HouseTypeViewController alloc]init];

    
    if (houseId >= 0)
    {
        vc.premiseshousingId = houseId;
    }else
    {
        vc.premiseshousingId = 0;
    }
     vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
